package ms.maplestory.boot.repository;

import ms.maplestory.boot.client.character.CharStat;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface CharStatRepository extends JpaRepository<CharStat, Integer> {

    @Query(value = "FROM CharStat stat WHERE stat.charId = :charId")
    CharStat findByCharId(@Param("charId") Integer id);

}

